package cn.sdormitory.report.service.impl;

import cn.sdormitory.report.dao.ClassRepairStaDao;
import cn.sdormitory.report.service.ClassRepairStaService;
import cn.sdormitory.report.vo.ClassRepairStaVO;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @创建人：zhouyang
 * @创建时间：2022/02/5 12:26
 * @version：V1.0
 */
@Slf4j
@Service("classRepairStaService")
public class ClassRepairStaServiceImpl extends ServiceImpl<ClassRepairStaDao, ClassRepairStaVO> implements ClassRepairStaService {
    @Resource
    ClassRepairStaDao classRepairStaDao;
    @Override
    public List<ClassRepairStaVO> getClassRepairStaList(String inYearMonth, int pageNum, int pageSize) {
        int currIndex=(pageNum-1)*pageSize;
        return classRepairStaDao.getClassRepairStaList(inYearMonth,currIndex,pageSize);
    }

    @Override
    public Long getClassRepairStaListCount(String inYearMonth) {
        return classRepairStaDao.getClassRepairStaListCount(inYearMonth);
    }

    @Override
    public List<ClassRepairStaVO> getClassRepairStaListExport(String inYearMonth) {
        return classRepairStaDao.getClassRepairStaListExport(inYearMonth);
    }

}
